package com.example.xssfworkbook;

/**
 * @author 沈传尚
 * @date 2022/3/2
 */
public class Test3 {
    public static void main(String[] args) {
        String s="2022-08-15";  // -> 2022-01-01

       String s1=s.substring(0,s.lastIndexOf("-")+1)+"01";
        System.out.println(s1);




    }
}
